package com.spring.service;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;

public class BeanService2 implements InitializingBean {

    private Integer value = 0;
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("BeanService2.........afterPropertiesSet");
    }
    public void init(){
        System.out.println("BeanService2 init...........");
    }

    public void destroy(){
        System.out.println("BeanService2 destroy...........");
    }

    public void print( String name){
        System.out.println("BeanService2:" + name);
    }
}
